//
//  Controller.h
//  all_test04
//
//  Created by Jarosław Wojtasik on 18.06.2013.
//  Copyright (c) 2013 Jarosław Wojtasik. All rights reserved.
//

#ifndef __all_test04__Controller__
#define __all_test04__Controller__

#include "Rotator.h"
#include <allegro5/allegro.h>
#include <memory>

class Controller {
public:
    Controller();
    ~Controller();

    void setRotator( std::shared_ptr<Rotator> rotator );
    void start();
    void stop();

private:
    ALLEGRO_EVENT_QUEUE*    _eventQueue;
    ALLEGRO_TIMER*          _frameTimer;
    std::shared_ptr<Rotator> _rotator;
};

#endif /* defined(__all_test04__Controller__) */
